package com.company.singleton.sample01;

//Initialization Demand Holder (IoDH)
public class Singleton
{
	private Singleton()
	{	
	}

	private static class HolderClass {
		private final static Singleton instance = new Singleton();
	}

	public static Singleton getInstance()
	{
		return HolderClass.instance;
	}
}